<script>
	
		$(document).ready(function(){
		   
		   

$(function(){
				// Datepicker

				$('#datepicker').datepicker({
					dateFormat: 'dd MM yy',
					changeMonth: true,
					changeYear: true,
					inline: true,
					 yearRange: '1962:2000'
					//dateFormat: 'yy-mm-dd',
				});

			//$( "#datepicker" ).datepicker( "option", "yearRange", '1962:2000' );
				
			});


});
	
	
			


</script>
<!-- start content -->
<div id="content">

<!--  start page-heading -->
	<div id="page-heading">
		<h1>Staff Access: [ Tambah ]</h1>
	</div>

<div id="topmenu" align="right">
<ul id="list">

<li><div align="center">&nbsp;<a href="<?=base_url()?>admin/staff"><img src="<?=base_url()?>asset/images/backend/user2.png" align="middle" width="40" height="40"><br/>Lihat Staff</a></div></li>&nbsp;&nbsp;&nbsp;&nbsp;
<li><div align="center"><a href="<?=base_url()?>admin/staff_add_form"><img src="<?=base_url()?>asset/images/backend/user2add.png" align="middle" width="40" height="40">&nbsp;<br/>Tambah Staff</a></div></li>
<li><div align="center"><a href="<?=base_url()?>admin/staff_access"><img src="<?=base_url()?>asset/images/backend/user2.png" align="middle" width="40" height="40">&nbsp;<br/>Lihat Akses Staff</a></div></li>
<li><div align="center"><a href="<?=base_url()?>admin/staff_access_add_form"><img src="<?=base_url()?>asset/images/backend/user2add.png" align="middle" width="40" height="40">&nbsp;<br/>Tambah Akses Staff</a></div></li>
</ul>
</div>



<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
	<th rowspan="3" class="sized"><img src="<?=base_url()?>asset/images/backend/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
	<th class="topleft"></th>
	<td id="tbl-border-top">&nbsp;</td>
	<th class="topright"></th>
	<th rowspan="3" class="sized"><img src="<?=base_url()?>asset/images/backend/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
</tr>
<tr>
	<td id="tbl-border-left"></td>
	<td>
	<!--  start content-table-inner -->
	<div id="content-table-inner">
	
	<?php

		$attributes = array('class' => 'admin', 'id' => 'addstaff','name' => 'addstaff','enctype'=>'multipart/form-data');
		echo form_open('admin/staff_access_add', $attributes);
	?>
          
               
	<table border="0" width="70%" cellpadding="0" cellspacing="0">
            <th><h2>Informasi Dasar</h2></th>
       <tr>
		      <th colspan="2" valign="middle" height="4"></th>
		      </tr>
		      
		    <tr>
            
			
			<th valign="middle"><div align="left">Username:</div></th>
			<td valign="middle"><input type="text" name="username" id="username" class="inp-form" /></td>
                       
		</tr>
	<tr>
            
			
			<th valign="middle"><div align="left">Password:</div></th>
			<td valign="middle"><input type="text" name="password" id="password" class="inp-form" /></td>
                        
		</tr>
		
		
               <tr>
			<th valign="middle"><div align="left">Level Pengguna</div></th>
			<td valign="middle">
				<select name="role" id="role" class="styledselect_form_1">
			<?php
			foreach($role as $row)
			{
				if($row->name!=$this->config->item('guest')){
				echo "<option value='".$row->id."'>".$row->name."</option>";
				}
				else{
				continue;
				}
			}
			?>
		</select>		</td>
		</tr>
		
		 <tr>
			<th valign="middle"><div align="left">Nama Staff</div></th>
			<td valign="middle">
				<select name="staff_name" id="staff_name" class="styledselect_form_1">
			<?php
			if(isset($staff))
			{
			foreach($staff as $row)
			{
				
				echo "<option value='".$row->staff_id."'>".$row->staff_name."</option>";
				
			}
			}
			elseif(empty($staff))
			{
				echo "<option value='0'>Staff Tidak Ditemukan</option>";
			}
			
			?>
		</select>		</td>
		</tr>
		
			
		    <tr>
		      <th colspan="2" valign="middle" height="10"></th>
		      </tr>
		      
		    
		
               
            
                
                 
        
        <tr>
		<th>&nbsp;</th>
		<td valign="top">
			<input type="submit" value="" class="form-submit" />
			<input type="reset" value="" class="form-reset"  />		</td>
	</tr>
        </table>
            <?=form_close()?>
            <!-- end id-form  -->
                </div>


               
                
<div class="clear">&nbsp;</div>

</div>
<script  type="text/javascript">

</script>
<!--  end content -->